<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>问题列表页</title>
	<%@ include file="./easyuiInclude.jsp"%>
</head>
<link rel="stylesheet" type="text/css"
	href="../static/My97DatePicker/skin/WdatePicker.css" />
<script type="text/javascript" src="../static/common/common.util.js"></script>
<script type="text/javascript"
	src="../static/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript"
	src="../static/js/question/questionList.js"></script>

<body class="easyui-layout">
	<div region="center" style="padding:5px;" border="false">
		<table id="dg"></table>
	</div>
	<!-- 回复问题 -->	
	<div id="addQuestionsDialog" class="easyui-dialog" title="回复提问" data-options="iconCls:'icon-save',closed: true,modal:true" 
		style="width:800px;height:400px;padding:10px;" >
		<form id="addQuestionsForm" method="post">
			<input id="id" name="id" type="hidden" />
			<table>
				<tr>
					<td>答案：</td>
					<td>
						<textarea id="answer" rows="10" cols="80">
						</textarea>
					</td>
				</tr>
			</table>
		</form>
		<br />
		<div style="text-align:center;padding:5px">
			<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="javascript:saveAnswer()" style="width: 80px">保存</a>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="javascript:$('#addQuestionsDialog').dialog('close')" style="width: 80px">取消</a>
		</div>
	</div>
	
	<div id="previewDialog" class="easyui-dialog" title="查看答案" data-options="iconCls:'icon-search',closed: true,modal:true,maximizable:true" 
		style="width:800px;height:400px;padding:10px">
		<div id="previewHtml"></div>
	</div>
	
	<div id="toolbar">
		<div>
			<form id="queryForm" >  
				<label>活动： 
				<select id="activityId">
					<c:forEach items="${acs}" var="item">
						<option value="${item.id}">${item.topic}</option>
					</c:forEach>
				</select>
				</label>
				<label id="detailSearch" style="text-align: center;">
		<form id="searchForm" method="post" target="_blank">
			
				<span class="tit" style="margin-left: 4px;">时间：</span>
				<span><input type="text" value="${obj.startTimeStr}"
					id="startTime" name="startTimeStr" class="Wdate"
					onClick="datePicker(1);" /></span> <span class="tit"
					style="margin-left: 25px;">至</span> <span
					style="margin-left: 25px;"><input type="text"
					value="${obj.endTimeStr}" id="endTime" name="endTimeStr"
					class="Wdate" onClick="WdatePicker({skin:'whyGreen'})" /></span><!--  <span
					class="tit" style="margin-left: 18px;"> -->
			<a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="doSearch();return false;">查询</a>
		</form>
	</label>
	
				<input id="ctimeLTEInput" type="hidden" class="specSearch"   name="ctimeLTE" fieldName="ctime" dataType="date" operator="LTE" format="yyyy-MM-dd"/>
			</form>
		</div>
	</div>

</body>
</html>